<template>
    <div>
        <p>详情</p>
        <el-button @click="numAdd">+</el-button>
    </div>
</template>

<script>
export default {
    data() {
        return {
            num: 1
        }
    },
    methods: {
        numAdd() {
            this.num += 1
            this.$bus.emit('num-change', this.num)
        }
    }
}
</script>

<style>

</style>